<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<html>
	<head>
		<title>我要留言</title>
		<link href="<s:url value='/css/button/button.css'/>" rel="stylesheet"
			type="text/css" />
		<script>
		    function trim(str){ //删除左右两端的空格
　　     		    return str.replace(/(^\s*)|(\s*$)/g, "");
　　           }

			function validate(){
				var feedback = document.getElementById('feedback_content').value;
				feedback = feedback.replace(/(^\s*)|(\s*$)/g, "");
				if(feedback==null||feedback==''){
				    document.getElementById('warning').style.display="block";
					return false;
				}
				return true;
			}
		</script>
		<style>
.qiushi_body {
	color: #353535;
	text-decoration: none;
	clear: both;
	font-family: monospace;
	border: 1px solid #CCC;
	border-bottom: none;
	border-top-left-radius: 7px 7px;
	border-top-right-radius: 7px 7px;
	padding: 5px 5px 5px;
	margin-right: 5px;
	width: auto 0;
	display: block;
}

.qiushi_counts {
	font-family: Arial;
	background-color: #F7F7F7;
	border-bottom: 1px solid #CCC;
	border-left: 1px solid #CCC;
	border-right: 1px solid #CCC;
	padding: 8px 5px;
	clear: both;
	border-bottom-left-radius: 7px 7px;
	border-bottom-right-radius: 7px 7px;
	margin-right: 5px;
	margin-bottom: 14px;
}
</style>
	</head>
	<body>
		<div style="text-align: center">
			<div class="fb"
				style="background-color: #bbdd61; height: 30px; font-size: 18px;">
				我要留言
			</div>
			<div style="font-size: 13px;">
				我们非常期待您的意见与建议
			</div>

			<p style="clear: both; height: 5px;"></p>
			<form action="<s:url value='/add_feedback.action'/>" method="post"
				onsubmit="return validate()">
				<textarea id="feedback_content" name="feedback.content" cols="80"
					rows="10"></textarea>
				<p style="clear: both; height: 5px;"></p>
				<p id="warning" style="display: none" class="red fb f4">
					请输入留言内容
				</p>
				<p style="clear: both; height: 5px;"></p>
				<input type="submit" value="提交"
					onmouseover="this.style.borderColor='#75cd02'"
					onmouseout="this.style.borderColor='#dcdcdc'" class="btn1 pbtn1" />
			</form>
		</div>
		<p style="clear: both; height: 30px;"></p>
		<div>
			<p style="clear: both; height: 5px;"></p>
			<s:iterator value="feedbacks" status="status">
				<div style="font-size: 16px;">
					<s:property value="FEEDBACK_TIME" />
				</div>
				<div class="qiushi_body article ">
					<p style="font-size: 15px;">
						<s:property value="CONTENT" />
					</p>
				</div>
				<div class="qiushi_counts">
					<h2 style="margin-bottom: 5px">
						回复:
					</h2>
					<p>
						<s:property value="REPLY_CONTENT" />
					</p>
				</div>
			</s:iterator>
		</div>
		fafafafafaffa
		<input type="hidden" id="menu_id" value="nav_feedback" />
	</body>
</html>


